<%
    /**
     * 预览html代码的js
     *
     */
%>
<SCRIPT language=javascript >
document.write(
"<div id=\"tooltip\" style=\"position:absolute;visibility:hidden;z-index:2; padding:3px;border:1px solid #FFFFD0;\
;background:#CEDBFF height: 19px; left: 77px; top: 96px\"></div>");

function showtip(text)  //显示链接的说明
{
  if (document.all&&document.readyState=="complete")  //针对IE
  {
  
  document.all.tooltip.innerHTML="<div vAlign=center><font SIZE=2>"+text+"</font></div>";
  document.all.tooltip.style.pixelLeft=event.clientX+document.body.scrollLeft+10;
  document.all.tooltip.style.pixelTop=event.clientY+document.body.scrollTop+10;
   document.all.tooltip.style.visibility="visible";
  }
}

function hidetip()  
{
if (document.all)
  document.all.tooltip.style.visibility="hidden";
}

function setcolor(fntcolor,bgcolor)
{
  document.all.tooltip.style.bgcolor=bgcolor;
  document.all.tooltip.innerHTML.Color = fntcolor;
}

function showhint(text)
{
      onmousemove=showtip(text);
      onmouseover=showtip(text);
}
</SCRIPT>
